package v1

var (
	// common errors
	ErrSuccess             = newError(0, "ok")
	ErrBadRequest          = newError(400, "Bad Request")
	ErrUnauthorized        = newError(401, "Unauthorized")
	ErrNotFound            = newError(404, "Not Found")
	ErrInternalServerError = newError(500, "Internal Server Error")

	// more biz errors
	ErrAccountAlreadyUse = newError(1001, "The account is already in use.")

	// adimin
	ErrAdiminNotFound          = newError(2001, "用户未找到")
	ErrAdiminAccountAlreadyUse = newError(2002, "该账号已被使用")
	ErrAdiminAccount           = newError(2003, "密码错误")
	ErrType                    = newError(2004, "用户类型错误")
	ErrPwd                     = newError(1006, "password error")

	//tag
	ErrTagNotFound = newError(3001, "tag not found")

	// article
	ErrArticleNotFound = newError(4001, "article not found")

	//type
	ErrTypeNotFound = newError(5001, "权限不够")
)
